#include "stdafx.h"
#include "ItemExEditor.h"
#include "ui_ItemEditor.h"

namespace tnmujoy
{
namespace uranus
{
//-------------------------------------------------------------------------
ItemExEditor::ItemExEditor( QObject* _parent )
    : IExEditor(_parent)
    , myUiClass_(NULL)
{

}
//-------------------------------------------------------------------------
ItemExEditor::~ItemExEditor()
{
    SAFE_DELETE(myUiClass_);
}
//-------------------------------------------------------------------------
void ItemExEditor::initialize() throw (TjException)
{
    myUiClass_ = new Ui::ItemExEditorUiClass();
    mainWindowPtr_ = MainWindowPtr(new QMainWindow());
    myUiClass_->setupUi(mainWindowPtr_.data());
}
//-------------------------------------------------------------------------
void ItemExEditor::exec() throw (TjException)
{
    mainWindowPtr_->show();
}


//-------------------------------------------------------------------------
}//namespace tnmujoy
}//namespace uranus